package logic;

/**
 * 
 * @author Merete, Mirna, Esben, Knut og Stian
 *
 */
public class Motion {
	
	private double xv;
	private double yv;
	private double accX;
	private double accY;
	
	public Motion () {
		xv = 0;
		yv = 0;
		accX = 0;
		accY = 0;
	}

	public void switchDirectionX() {
		xv = -1*xv;
		accX = -1*accX;
	}
	
	public void switchDirectionY() {
		yv = -1*yv;
		accY = -1*accY;
	}
	
	//GETTERS AND SETTERS:
	
	public double getXv() {
		return xv;
	}

	public void setXv(double xv) {
		this.xv = xv;
	}

	public double getYv() {
		return yv;
	}

	public void setYv(double yv) {
		this.yv = yv;
	}



	public double getAccX() {
		return accX;
	}



	public void setAccX(double accX) {
		this.accX = accX;
	}



	public double getAccY() {
		return accY;
	}



	public void setAccY(double accY) {
		this.accY = accY;
	}
	
}
